package com.bonc.rms.service.impl.tms;

import java.util.List;
import java.util.Map;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bonc.odk.logmanager.LogManager;
import com.bonc.rms.dao.tms.TalentInformationDao;
import com.bonc.rms.service.tms.TalentInformationService;

@Service
@Transactional

public class TalentInformationServiceImpl implements TalentInformationService {

	@Autowired
	TalentInformationDao employeeInformationDao;
	
	@Override
	public List<Map<String, Object>> getTalentInformation(Integer departmentId,Integer pageno, Integer pageSize) {
		LogManager.Method("In  Service : TalentInformationServiceImpl -> getTalentInformation");
		LogManager.Method("Out Service : TalentInformationServiceImpl -> getTalentInformation");
		return employeeInformationDao.getTalentInformation(departmentId, pageno, pageSize);
	}

	@Override
	public Integer getTalentInformationCount(Integer departmentId) {
		LogManager.Method("In  Service : TalentInformationServiceImpl -> getTalentInformationCount");
		LogManager.Method("Out Service : TalentInformationServiceImpl -> getTalentInformationCount");
		return employeeInformationDao.getTalentInformationCount(departmentId);
	}

	@Override
	public List<Map<String, Object>> searchTalent(Integer departmentId, String keyWord) {
		LogManager.Method("In  Service : TalentInformationServiceImpl -> searchTalent");
		LogManager.Method("Out Service : TalentInformationServiceImpl -> searchTalent");
		return employeeInformationDao.searchTalent(departmentId, keyWord);
	}
	
}
